# -*- coding:utf-8 -*- #

MServerConfig = {}

MServerConfig['SERVE_INDEX']=0
MServerConfig['SERVE_PORT']=25000
MServerConfig['DEBUG'] =  0    #信息输出
MServerConfig['CMLOG'] = 'logs/cm.log' #'log.lgo' #'E:\\siteroot\\pydev\\fcgi.log'

#MYSQL
MServerConfig['DB_SERVER'] = "localhost"
MServerConfig['USER'] = 'root'
MServerConfig['PASSWORD'] = '123456'
MServerConfig['DB'] = "132000032"
MServerConfig['DB_DEBUG'] = False


#一些结构性设置
MServerConfig['suggestThreadPoolSize'] = 1000
MServerConfig['AdminIpList'] = ['127.0.0.1'] #管理员的ip列表
for i in xrange(254):
    MServerConfig['AdminIpList'].append( '172.17.0.' + str(i) )
    MServerConfig['AdminIpList'].append( '172.17.1.' + str(i) )
MServerConfig['refuseIpList'] = ['127.0.0.2'] #拒绝的ip列表
MServerConfig['checkAfterConnect'] = 0.2 #连接后检查是否登陆的时间间隔,每ip此时间内仅允许一 个等待登陆连接